home *** CD-ROM | disk | FTP | other *** search
- Path: chronicle.mti.sgi.com!austern
- From: axl@zedat.fu-berlin.de (Axel Thimm)
- Newsgroups: gnu.g++.help,comp.std.c++,comp.lang.c++.moderated
- Subject: Streams and eof()
- Followup-To: comp.std.c++
- Date: 01 Mar 1996 17:43:16 PST
- Organization: FU Berlin, Fachbereich Physik, Institut fuer Theoretische Physik
- Approved: vandevod@cs.rpi.edu, austern@isolde.mti.sgi.com
- Message-ID: <199603010214.VAA16273@pleiades.cs.rpi.edu>
- Reply-To: axl@zedat.fu-berlin.de
- NNTP-Posting-Host: isolde.mti.sgi.com
- X-Original-Date: Thu, 29 Feb 1996 21:14:12 -5300 (EST)
- X-Mailer: ELM [version 2.4 PL24]
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBVAwUBMTeo90y4NqrwXLNJAQEsnAH/VOn69mpKGZea08F/Z/nUzY8e/pDV1nGE
- PuyTaEbosBzCk+g9jmiHmYwT/4JsJttsO5+/AC0PxFepISSVqzDjWg==
- =mC1c
- Originator: austern@isolde.mti.sgi.com
-
-
- [Moderator's note: Please note that this article is crossposted to
- three newsgroups, two of which are moderated. The Followup-to line is
- set to comp.std.c++. You should edit your newsgroups line if your
- reply would be more appropriate for some other group(s). mha]
-
-
- Hello,
-
- I have had a look in the April draft, but I think that there is a small
- ambiguity about eof() methods in streams.
- Is the eof-flag raised, when the end of the stream is reached, or when
- an attempt to move past this end is made? I think the most common
- practice is the latter, but the ANSI draft uses the former statement.
- Declaring the end of a stream as the first charachter _after_ the last
- character of the stream would rescue the expression, but wouldn't fit
- into a concept of an end. (Usually one thinks of an end as belonging to
- the whole)
- As I am rather convinced, that the eof is raised at an attempt to meove
- past the end, I'd like to ask how to check this in a binary file without
- having to perform a movement.
-
- Regards,
- Axel.
- ===
- Axel Thimm <axl@zedat.fu-berlin.de>
- Freie Universitaet Berlin
- ===
-
- [ Articles to moderate: mailto:c++-submit@netlab.cs.rpi.edu ]
- [ Read the C++ FAQ: http://www.connobj.com/cpp/cppfaq.htm ]
- [ Moderation policy: http://www.connobj.com/cpp/guide.htm ]
- [ Comments? mailto:c++-request@netlab.cs.rpi.edu ]
-
- ---
- [ comp.std.c++ is moderated. To submit articles: Try just posting with your
- newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
- comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
- Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
- Comments? mailto:std-c++-request@ncar.ucar.edu
- ]
-